package de.fhhof.robot.control.impl;

import de.fhhof.robot.control.ConnectionFactory;
import de.fhhof.robot.control.common.CommonConstants;
import de.fhhof.robot.control.net.Connection;
import de.fhhof.robot.control.net.IConnection;

public class ControlToJsap {

	private static IConnection jsapConnection = null;
	
	public static IConnection getJsapConnection(){
		if(jsapConnection == null){
			jsapConnection = ConnectionFactory.getConnection(CommonConstants.JSAP_HOST, CommonConstants.JSAP_PORT, CommonConstants.CONTROL, CommonConstants.JSAP);
		}
		
		return jsapConnection;
	}
}
